﻿namespace Repositories.BDS;

/// <summary>
/// 基础数据平台设备
/// </summary>
public class BDS_DeviceModel
{
    /// <summary>
    /// 主键
    /// </summary>
    public int id { get; set; }

    /// <summary>
    /// 场地
    /// </summary>
    public dynamic site { get; set; }

    /// <summary>
    /// 设备类型
    /// </summary>
    public dynamic devicetype { get; set; }

    /// <summary>
    /// 设备名称
    /// </summary>
    public string name { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int sort { get; set; }

    /// <summary>
    /// 硬件序列号
    /// </summary>
    public string serialnumber { get; set; }

    /// <summary>
    /// 硬件编码
    /// </summary>
    public string machinecode { get; set; }

    /// <summary>
    /// 资产编码
    /// </summary>
    public string assetcode { get; set; }

    /// <summary>
    /// 设备ip
    /// </summary>
    public string ip { get; set; }

    /// <summary>
    /// 设备端口
    /// </summary>
    public int? port { get; set; }

    /// <summary>
    /// 设备mac地址
    /// </summary>
    public string mac { get; set; }

    /// <summary>
    /// 设备用户名
    /// </summary>
    public string uid { get; set; }

    /// <summary>
    /// 设备密码
    /// </summary>
    public string pwd { get; set; }

    /// <summary>
    /// 设备通道
    /// </summary>
    public int? cno { get; set; }

    /// <summary>
    /// 子码流ID
    /// </summary>
    public int? substream { get; set; }

    /// <summary>
    /// 接入协议
    /// </summary>
    public object devprotocol { get; set; }

    /// <summary>
    /// 视频类型（1：教师视频，2：学生视频，3：硬采视频/PC，4：自定义视频，5：老师特写，6：学生特写）
    /// </summary>
    public int? videotype { get; set; }

    /// <summary>
    /// 参数（{视频设备：启用音频}，{PC：启用音频}，{投影：灯泡寿命}，{对讲设备：分机号}，{灯光空调控制器：灯光组数,空调数组}）
    /// </summary>
    public string parameter { get; set; }

    /// <summary>
    /// 扩展字段1
    /// </summary>
    public string ext1 { get; set; }

    /// <summary>
    /// 是否启用（1：启用，2：禁用）
    /// </summary>
    public int enable { get; set; }

    /// <summary>
    /// 是否删除（1：未删除，2：已删除）
    /// </summary>
    public int isdelete { get; set; }

    /// <summary>
    /// 设备id
    /// </summary>
    public int device { get; set; }

    /// <summary>
    /// 厂家
    /// </summary>
    public object devfactory { get; set; }

    /// <summary>
    /// 品牌
    /// </summary>
    public object devbrand { get; set; }

    /// <summary>
    /// 型号
    /// </summary>
    public dynamic devmodel { get; set; }

    /// <summary>
    /// 电子标签
    /// </summary>
    public string elabel { get; set; }

    /// <summary>
    /// 经销商
    /// </summary>
    public object devdistributor { get; set; }

    /// <summary>
    /// 采购方式
    /// </summary>
    public object devpurchase { get; set; }

    /// <summary>
    /// 归属部门
    /// </summary>
    public object organization { get; set; }

    /// <summary>
    /// 保管人
    /// </summary>
    public object custodian { get; set; }

    /// <summary>
    /// 临时归属人
    /// </summary>
    public object tcustodian { get; set; }

    /// <summary>
    /// 登记日期（yyyy-MM-dd）
    /// </summary>
    public string regdate { get; set; }

    /// <summary>
    /// 保修截止日期（yyyy-MM-dd）
    /// </summary>
    public string warrantydate { get; set; }

    /// <summary>
    /// 预计使用年限
    /// </summary>
    public int? servicelife { get; set; }

    /// <summary>
    /// 单位
    /// </summary>
    public object devunit { get; set; }

    /// <summary>
    /// 资产价值（单位：元）
    /// </summary>
    public decimal? price { get; set; }

    /// <summary>
    /// 残值（单位：元）
    /// </summary>
    public decimal? lastprice { get; set; }

    /// <summary>
    /// 资产附件（最多5个）
    /// </summary>
    public object annex { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string remark { get; set; }
    /// <summary>
    /// 父节点名称
    /// </summary>
    public string pnodename { get; set; }
}
